Skip to content

[module-webdriver] fix type error in PHP 8.1 when converting ms to sec #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

macghriogair
Copy link
Contributor

fixes 102

php -v
PHP 8.1.8 (cli) (built: Jul 11 2022 08:53:35) (NTS)
---
TypeError date(): Argument #2 ($timestamp) must be of type ?int, float given
TypeError Uncaught \TypeError

TypeError at /xxx/vendor/codeception/module-webdriver/src/Codeception/Module/WebDriver.php:721

Fixes a type error when calling date function with a float while formatting log entries:

@Naktibalda Naktibalda merged commit e0aa26c into Codeception:2.0 Jul 27, 2022
Naktibalda pushed a commit that referenced this pull request Jul 27, 2022
#103)

* [module-webdriver] fix type error in PHP 8.1 when converting milliseconds to seconds

* simplify using intval

Co-authored-by: Patrick Mac Gregor <patrick.macgregor@foo.ag>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants